package cn.wolfcode.luowowo.article.domain;

import cn.wolfcode.luowowo.common.domain.BaseDomain;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Setter
@Getter
public class Answer extends BaseDomain {
    public static final String DATE_TYPE_DAY = "day";
    public static final String DATE_TYPE_WEEK = "week";
    public static final String DATE_TYPE_MONTH = "month";

    private Long questionId;

    private Long userId;

    private String username;

    private Integer level;

    private String headUrl;

    private Boolean goldmedal;

    private Integer viewnum;

    private Integer favornum;

    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date releaseTime;

    private Boolean pathfinder;

    private String coverUrl;

    private AnswerContent answerContent;

}